package com.bw.module_home.property.adapter

import android.widget.TextView
import com.bw.module_home.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class DistrictAdapter: BaseQuickAdapter<String, BaseViewHolder>(R.layout.district_item) {
    private var position : Int = -1
    fun setPosition(position: Int) {
        this.position = position
    }
    fun getPosition(): Int {
        return position
    }
    override fun convert(holder: BaseViewHolder, item: String) {
        val tv = holder.getView<TextView>(R.id.district_item_tv)
        tv.text = item
    }
}